package com.springboot.cloud.demos.feign.rest;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.demos.feign.service.BannerService;
import com.springboot.cloud.demos.feign.service.LessonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class LessonController {

    @Autowired
    private LessonService lessonService;


    @RequestMapping(value = "/open/lesson", method = RequestMethod.GET)
    public Result query(@RequestParam("unitId") String unitId) {
        return lessonService.query(unitId);
    }
}
